package com.example.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.example.domain.XsBkhrEntity;
import com.example.domain.XsEntity;
import com.example.domain.XsHkEntity;
import com.example.domain.XsHtEntity;
import com.example.domain.XsRbEntity;
import com.example.domain.XsTbEntity;
import com.example.domain.XsXmEntity;

@Repository
public interface XsMapper{
	
	public List<XsEntity> queryXsPerson(@Param("deptNames")String[] deptNames);
	
	public XsEntity queryXsData(@Param("loginid")String loginid,@Param("year")String year,@Param("deptNames")String[] deptNames);
	
	public int queryKQ(@Param("loginid")String loginid,@Param("year")String year);
	public Integer queryKQByDate(@Param("loginid")String loginid,@Param("date")String date);
	// 合同
	public List<XsHtEntity> queryXsHt(@Param("year")String year,@Param("deptNames")String[] deptNames);
	// 项目
	public List<XsXmEntity> queryXsXm(@Param("year")String year,@Param("deptNames")String[] deptNames);
	// 日报
	public List<XsRbEntity> queryXsRb(@Param("year")String year,@Param("deptNames")String[] deptNames);
	// 投标
	public List<XsTbEntity> queryXsTb(@Param("year")String year,@Param("deptNames")String[] deptNames);
	
	// 投标数据分析
	public List<XsTbEntity> queryXsTbDetail(@Param("year")String year,@Param("deptNames")String[] deptNames);
		
	// 回款
	public List<XsHkEntity> queryXsHk();
	
	// 被考核人
	public List<XsBkhrEntity> queryXsBkhr();
	
	// 销售看板项目转入无效
	public Boolean wuxiao(String id);
}
